package com.yingsheng.bi.hks.feign.client;

import com.yingsheng.bi.hks.basic.FeignConst;
import com.yingsheng.bi.hks.dto.merch.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 商户信息维护路由
 */
@FeignClient(contextId = FeignConst.HKS_MERCH, name = FeignConst.SERVICE_NAME)
@Api(tags = "商户信息", value = "商户信息")
public interface MerchFeignClient {

    @ApiOperation(httpMethod = "POST",value = " 商户信息新增")
    @RequestMapping(value = "/merchMgmt/merchAdd")
    MerchAddRes add(@RequestBody MerchAddReq req);

    @ApiOperation(httpMethod = "POST",value = " 商户信息修改")
    @RequestMapping(value = "/merchMgmt/merchMod")
    MerchModRes mod(@RequestBody MerchModReq req);

    @ApiOperation(httpMethod = "POST",value = "商户信息查询")
    @RequestMapping(value = "/merchMgmt/merchQry")
    MerchQryRes qry(@RequestBody MerchQryReq req);

    @ApiOperation(httpMethod = "POST",value = " 商户信息删除")
    @RequestMapping(value = "/merchMgmt/merchDel")
    MerchDelRes del(@RequestBody MerchDelReq req);
}
